<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            text-decoration: none;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        body{
            width: 100%;
            height: 100%;
            background: url('/跟着狂神/img/彭于晏.jpg') no-repeat;
            background-position:center top;
            background-size: cover;
        }
        img{
            width: 200px;
            height: 120px;
        }
        ul{
              font-size: 0;
              display: flex;
              justify-content: center;
              margin-top:70px; 
              box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.522);
        }
        
    </style>
</head>
<body>
    <ul class="ul">
        <li><img src="/跟着狂神/img/彭于晏.jpg" alt=""></li>
        <li><img src="/跟着狂神/img/03.png" alt=""></li>
        <li><img src="/跟着狂神/img/04.JPG" alt=""></li>
        <li><img src="/跟着狂神/img/05.png" alt=""></li>
    </ul>
    <script>
var imgs=document.querySelector('.ul').querySelectorAll('img');
for(var i=0;i<imgs.length;i++){
    imgs[i].onmouseover=function(){
        // console.log(this.src);
        document.body.style.backgroundImage='url('+this.src+')'
    }
}
    </script>
</body>
</html>